POV-Ray : Newsgroups : povray.general : Doing data-visualization...But HowTo do it ??? : Re: Doing data-visualization...But HowTo do it ??? Server Time
9 Aug 2024 13:22:05 EDT (-0400)
  Re: Doing data-visualization...But HowTo do it ???  
From: ryan constantine
Date: 16 Jul 2000 18:05:54
Message: <3972317D.CFBC8723@yahoo.com>
another alternative is to use an SOR.  Surface Of Revolutions can be
spun for partial circles.  the surface to be revolved would just be a
straight line.  you'd have to make several, one for each pie chart
member, and then rotate and/or translate accordingly.

Chris Huff wrote:
> 
> In article <397220e1@news.povray.org>, "Jan Walzer"
> <wal### [at] informatikuni-hallede> wrote:
> 
> > Can't I limit a cylinder to some degrees to use ???
> 
> An isosurface seems a bit extreme for this...just use an intersection or
> difference with a cylinder and 2 planes to create a wedge shape. You
> could then translate the wedge away from the axis to separate the
> "slice" from the others.
> A macro like this should work: (untested!)
> 
> #macro PieWedge(minAngle, maxAngle, Radius, Thickness, Separation, Tex)
>     difference {
>         cylinder {< 0, 0, 0>, < 0, Thickness, 0>, Radius}
>         plane {-x, 0 rotate y*(maxAngle - minAngle)/2}
>         plane {x, 0 rotate -y*(maxAngle - minAngle)/2}
>         texture {Tex}
>         translate z*Separation
>         rotate y*(minAngle + (maxAngle - minAngle)/2)
>     }
> #end
> 
> The parameters:
> minAngle and maxAngle specify the angles where the wedge begins and
> ends; Radius specifies the radius of the wedges, Thickness specifies the
> height of the wedge, Separation controls the distance the wedge is moved
> from the center, and Tex is the texture.
> 
> --
> Christopher James Huff - Personal e-mail: chr### [at] maccom
> TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
> Personal Web page: http://homepage.mac.com/chrishuff/
> TAG Web page: http://tag.povray.org/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.